<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>workerman</title>
</head>
<body>

<p>这是一个websocket长链接</p>

</body>
</html>

<script>

    var socket = new WebSocket("ws://47.100.13.53:9999")
    socket.onopen = function () {
      socket.send("===login==success");
    };
    socket.onmessage = function (e) {
        alert(e.data);
    };
</script>